//
//  HWCustomSheet.h
//  HuaWan
//
//  Created by HuaWan  on 2022.
//  Copyright © 2022 HuaWan . All rights reserved.
//

#import "BaseView.h"

@class HWCustomSheetModel;
@class HWCustomSheet;

@protocol HWCustomSheetDelegate <NSObject>

- (void)customSheet:(HWCustomSheet *)sheet buttonAction:(UIButton *)sender;
- (void)customSheet:(HWCustomSheet *)sheet textField:(UITextField *)textField;

@end

@interface HWCustomSheet : BaseView <UITextFieldDelegate>

@property (nonatomic,weak) id<HWCustomSheetDelegate> delegate;
@property (weak, nonatomic) IBOutlet UIView *maskView;
@property (weak, nonatomic) IBOutlet UIView *myView;
@property (weak, nonatomic) IBOutlet UITextField *textField;//输入框
@property (weak, nonatomic) IBOutlet UIButton *leftButton;
@property (weak, nonatomic) IBOutlet UIButton *rightButton;
@property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *myButtons;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewCenterY;
@property (nonatomic,strong) HWCustomSheetModel *model;//dic

- (void)setData:(id)data delegate:(id)delegate;

@end


#pragma mark - model

@interface HWCustomSheetModel : NSObject

@property (nonatomic,copy) NSString *text;

+ (HWCustomSheetModel *)ittemModelWithText:(NSString *)text;
    
@end
